package Operation;

import book.Book;
import book.BookList;

public class DIsplayOperation implements IOPeration{
    @Override
    public void work(BookList bookList) {
        //
        System.out.println("开始展示全部");
        for (int i = 0; i < bookList.getUsedSize(); i++) {
            Book book = bookList.getBook(i);
            System.out.println(book.toString());
        }
    }
}
